import aes from 'aes-cross';
import {KEY,IV} from '@/config/aes';

export default {
    encryption,
    decryption
}

function encryption(str) {
    return aes.encText(str,KEY,IV);
}

function decryption(enc) {
    return aes.decText(enc,KEY,IV);
}